package cate.game.pvp.ladder.common;

import cate.game.play.part.PlaySide;
import cate.game.role.RoleSnapshot;
import lombok.Data;

/** 一场天梯赛数据 */
@Data
public class LadderCompetition {

    public String note = "记录一些数据";

    private final PlaySide selfPs;
    private final int selfRankOld;
    private final PlaySide oppoPs;
    private final int oppoRankOld;
    private final PlaySide selfPsDef;
    private final boolean robot;

    public LadderCompetition(PlaySide selfPs, int selfRankOld, PlaySide oppoPs, int oppoRankOld, PlaySide selfPsDef, boolean robot) {
        this.selfPs = selfPs;
        this.selfRankOld = selfRankOld;
        this.oppoPs = oppoPs;
        this.oppoRankOld = oppoRankOld;
        this.selfPsDef = selfPsDef;
        this.robot = robot;
    }

    public RoleSnapshot getSelfSnapshot() {
        return selfPs.snapshot;
    }

    /** 我方之前的排名 */
    public int getSelfRankOld() {
        return selfRankOld;
    }

    public RoleSnapshot getOppoSnapshot() {
        return oppoPs.snapshot;
    }

    /** 对方之前的排名 */
    public int getOppoRankOld() {
        return oppoRankOld;
    }


}
